home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / ww_tv.exe / TVEDIT.H < prev    next >
C/C++ Source or Header  |  1991-11-19  |  1KB  |  58 lines

  1. /*----------------------------------------------------------*/
  2. /*                                                          */
  3. /*   Turbo Vision 1.0                                       */
  4. /*   Copyright (c) 1991 by Borland International            */
  5. /*                                                          */
  6. /*   Turbo Vision TVEDIT header file                        */
  7. /*----------------------------------------------------------*/
  8.  
  9. class TMenuBar;
  10. class TStatusLine;
  11. class TEditWindow;
  12. class TDialog;
  13.  
  14. const
  15.   cmOpen       = 100,
  16.   cmNew        = 101,
  17.   cmChangeDrct = 102,
  18.   cmDosShell   = 103,
  19.   cmCalculator = 104,
  20.   cmShowClip   = 105,
  21.   cmRecord     = 106,
  22.   cmPlay       = 107;
  23.  
  24. class TEditorApp : public TApplication
  25. {
  26.  
  27. public:
  28.  
  29.     TEditorApp();
  30.  
  31.     virtual void handleEvent( TEvent& event );
  32.     static TMenuBar *initMenuBar( TRect );
  33.     static TStatusLine *initStatusLine( TRect );
  34.     virtual void outOfMemory();
  35.  
  36. private:
  37.  
  38.     TEditWindow *openEditor( const char *fileName, Boolean visible );
  39.     void fileOpen();
  40.     void fileNew();
  41.     void changeDir();
  42.     void dosShell();
  43.     void showClip();
  44.     void tile();
  45.     void cascade();
  46.  
  47.     // Added by JLS -- override base class
  48.     virtual void getEvent(TEvent& event); 
  49. };
  50.  
  51. extern TEditWindow *clipWindow;
  52.  
  53. ushort execDialog( TDialog *d, void *data );
  54. TDialog *createFindDialog();
  55. TDialog *createReplaceDialog();
  56. ushort doEditDialog( int dialog, ... );
  57.  
  58.